<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改BGL交易抽查监控参数')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-info-edit" th:object="${paeaBglInfo}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">
                <label class="col-sm-3 control-label"><span style="color: red; ">*</span>核算码：</label>
                <div class="col-sm-8">
                    <input name="srnInfo" th:field="*{srnInfo}" class="form-control" type="text" maxlength="4" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label"><span style="color: red; ">*</span>顺序号：</label>
                <div class="col-sm-8">
                    <input name="seqNum" th:field="*{seqNum}" class="form-control" type="text" maxlength="3" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">占比：</label>
                <div class="col-sm-8">
                    <input name="scale" th:field="*{scale}" class="form-control" type="text" maxlength="2">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">备注：</label>
                <div class="col-sm-8">
                    <textarea class="form-control" placeholder="请输入文本" type="text" name="remark" rows="8" cols="20" th:field="*{remark}"></textarea>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">借贷方：</label>
                <div class="col-sm-8">
                    <div class="radio-box" th:each="dict : ${@dict.getType('para_debit_credit')}">
                        <input type="radio" th:id="${'expression_'+dict.dictCode}" name="expression" th:value="${dict.dictValue}" th:field="*{expression}">
                        <label th:for="${'expression_'+dict.dictCode}" th:text="${dict.dictLabel}"></label>
                    </div>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script type="text/javascript">
        var prefix = ctx + "para/bglInfo";
        $("#form-info-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-info-edit').serialize());
            }
        }
    </script>
</body>
</html>